<?php

/**
 * @author Binto Widodo
 * @copyright 2014
 */

class CI_Extjs{
    public function __construct(){
        
    }
    
    public function setHeader($LIBPATH_, $path_){
        $js =  '<link rel="stylesheet" type="text/css" href="'.$LIBPATH_.'/ext40/resources/css/ext-all.css">';
        $js .= '<script type="text/javascript" src="'.$LIBPATH_.'/ext40/ext.js"></script>';
        $js .= '<script type="text/javascript">';
        $js .= 'var jsPath  = "'.$path_.'/";';
        $js .= '</script>';
                
        return $js;
   }
    public function setAppJs($path_, $jsFile_){
        $js = '<script type="text/javascript" src="'.$path_.'/'.$jsFile_.'"></script>';
        return $js;
    }
}

?>